<?php
require_once 'common.inc';
session_start ();
if (! isset ( $_SESSION ['id'] ) or ! isset ( $_POST ['tname'] ))
	exit ();
$result = execSQL ( "SHOW FULL COLUMNS FROM " . $_POST ['tname'] );
$str = "";
while ( $row = mysql_fetch_array ( $result ) ) {
	$str .= "'" . $row ['Field'] . "':'" . $row ['Comment'] . "',";
}
echo "{" . substr ( $str, 0, - 1 ) . "}";
?>